FROM python:3.10.14-bullseye

RUN mkdir /src \
    mkdir -p /etc/supervisor/conf.d \
    mkdir /logs
COPY . /src/
COPY ./conf/supervisord.conf /etc/supervisor/
COPY ./conf/supervisor.conf /etc/supervisor/conf.d
COPY ./conf/req.txt ./src

WORKDIR /src
RUN pip install -r req.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple